var express = require('express');

// express的路由中间件
var router = express.Router();

// 向这个中间件对象添加具体的路由
/* GET home page. */
router.get('/', function(req, res, next) {
  res.render('index', {
    title: 'Express',
    a: "hello hahah",
    b: 123,
    c: false,
    d: {name:"admin",age:19},
    e: ["北京", "上海", "广州", "深圳"],
    f: "<em>哈哈</em>"
  });
});

// 将处理之后的路由中间件对象暴露出去
module.exports = router;
